var Mock = require('mockjs')



var typeData = ["交通单位", "医疗单位", "行政单位", "银行金融", "本地服务", "旅游景点"];

var classData = [
	"火车站",
	"地铁站",
	"汽车站",
	"飞机场",
	"高铁站",
	"三甲医院",
	"二甲医院",
	"附属医院",
	"人民医院",
	"市医院",
];

var allData = [
	{
		type_id: 1,
		type_name: "交通单位",
		child: [
			{ id: 1, name: "火车站", categoty_name: "交通单位" },
			{ id: 2, name: "地铁站", categoty_name: "交通单位" },
			{ id: 3, name: "汽车站", categoty_name: "交通单位" },
			{ id: 4, name: "高铁站", categoty_name: "交通单位" },
			{ id: 5, name: "飞机场", categoty_name: "交通单位" }
		]
	},{
		type_id: 2,
		type_name: "医疗单位",
		child: [
			{ id: 1, name: "三甲医院", categoty_name: "医疗单位" },
			{ id: 2, name: "二甲医院", categoty_name: "医疗单位" },
			{ id: 3, name: "附属医院", categoty_name: "医疗单位" },
			{ id: 4, name: "人民医院", categoty_name: "医疗单位" },
			{ id: 5, name: "市医院", categoty_name: "医疗单位" }
		]
	},{
		type_id: 3,
		type_name: "行政单位",
		child: [
			{ id: 1, name: "人大", categoty_name: "行政单位" },
			{ id: 2, name: "省政府", categoty_name: "行政单位" },
			{ id: 3, name: "区政府", categoty_name: "行政单位" },
			{ id: 4, name: "乡政府", categoty_name: "行政单位" },
			{ id: 5, name: "市政府", categoty_name: "行政单位" }
		]
	},{
		type_id: 4,
		type_name: "银行金融",
		child: [
			{ id: 1, name: "光大银行", categoty_name: "银行金融" },
			{ id: 2, name: "广发银行", categoty_name: "银行金融" },
			{ id: 3, name: "浦发银行", categoty_name: "银行金融" },
			{ id: 4, name: "招商银行", categoty_name: "银行金融" },
			{ id: 5, name: "建设银行", categoty_name: "银行金融" }
		]
	},{
		type_id: 5,
		type_name: "本地服务",
		child: [
			{ id: 1, name: "高新区", categoty_name: "本地服务" },
			{ id: 2, name: "蜀山区", categoty_name: "本地服务" },
			{ id: 3, name: "庐阳区", categoty_name: "本地服务" },
			{ id: 4, name: "开发区", categoty_name: "本地服务" },
			{ id: 5, name: "新站区", categoty_name: "本地服务" }
		]
	},{
		type_id: 6,
		type_name: "旅游景点",
		child: [
			{ id: 1, name: "黄山市", categoty_name: "旅游景点" },
			{ id: 2, name: "合肥市", categoty_name: "旅游景点" },
			{ id: 3, name: "杭州市", categoty_name: "旅游景点" },
			{ id: 4, name: "苏州市", categoty_name: "旅游景点" },
			{ id: 5, name: "上海市", categoty_name: "旅游景点" }
		]
	},
]


var telData = Mock.mock({
	//'allclass': allData,
	'allclass|6': [
		{
			"type_id|+1": 1,
			"type_name|+1": typeData,
			"child|7-15": [
				{
					'id|+1': 1,
					"name|1": classData,
				}
			]
		}
	],
	'list|40-45': [
		{
			"id|+1": 37,
			"title": "安徽省社保中心",
			"address": "望江西路533号云掌大厦",
			"phone": "0551-7321846",
			"uid": 10,
			"author": "卡卡",
			"category_id": 24,
			"category_type|1": typeData,
			"category_name|1": classData,
			"status|0-1": 1,
			"release_time": 1593350324,
			"add_time|1599000000-1700000000": 1,
			"update_time|1599000000-1712300000": 1
		}
	]
})

export { telData }